package com.white.commonlib.adapter.recycle;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import butterknife.ButterKnife;

/**
 * Created by ytf on 2017/3/31 031.
 * Description: 加载更多的默认ViewHolder
 */

public abstract class BaseHeaderViewHolder extends RecyclerView.ViewHolder
{
    View v;
    Context mContext;

    public BaseHeaderViewHolder(Context context, View v)
    {
        this(v);
        this.mContext = context;
    }

    private BaseHeaderViewHolder(View itemView)
    {
        super(itemView);
        ButterKnife.bind(this, itemView);
        v = itemView;
    }

    public View getItemView()
    {
        return v;
    }

    public void setData(Context ctx)
    {
        setContent(ctx);
    }

    public abstract void setContent(Context ctx);
}
